import {loginApi} from "../api/common"
import {setUserInfo} from "../utils/auth"

const common = {
  state: {
    host: window.location.host,
    shareReady: false
  },

  mutations: {
    SHARE_READY: (state, boolean) => {
      state.shareReady = boolean
    }
  },

  actions: {
    ShareReadyAct ({ commit }) {
      commit('SHARE_READY', true)
    },
  }
}

export default common
